﻿using KuiHuaBaoDian;

public static class KHBD {

    /// <summary>
    /// 运行时环境
    /// </summary>
    public static IRuntime Runtime { get; } = new KHBD_Runtime();

    private static IContext m_Content;
    /// <summary>
    /// 上下文
    /// </summary>
    public static IContext Context {
        get {
            if (m_Content == null) {
                m_Content = Runtime as IContext;
            }
            return m_Content;
        }
    }

    /// <summary>
    /// 实现映射表
    /// </summary>
    public static ITypeMap TypeMap { get; } = new KHBD_TypeMap();

    /// <summary>
    /// 本地存储
    /// </summary>
    public static IStorage Storage { get; } = new KHBD_Storage();
}
